using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Travel.UserControls
{
    public partial class PointHistory : UserControl
    {
        public PointHistory()
        {
            InitializeComponent();
        }

        private void DataPoint()
        {
            gvPoint.Rows.Add("2009", "7,000", "0", "6,900", "100", null);
            gvPoint.Rows.Add("2010", "7,000", "2,200", "0", "0", "Maintain");
            gvPoint.Rows.Add("2011", "7,000", "0", "0", "0", "Maintain");
        }

        private void PointHistory_Load(object sender, EventArgs e)
        {
            DataPoint();
        }

        private void gvPoint_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
        {
            if (e.ColumnIndex == colProcess.Index)
            {
                if (e.RowIndex == 0)
                {
                    e.Graphics.FillRectangle(new SolidBrush(Color.White), e.CellBounds.X, e.CellBounds.Y, e.CellBounds.Width, e.CellBounds.Height);
                    e.Handled = true;
                }
            }
        }
    }
}
